package com.aiobc.business.dataInfo.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.aiobc.common.core.annotation.Excel;
import com.aiobc.common.core.web.domain.BaseEntity;

/**
 * 数据信息对象 data_info
 *
 * @author ruoyi
 * @date 2021-10-22
 */
public class DataInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 数据ID */
    @Excel(name = "数据ID")
    private String dataId;

    /** 数据类型（1：数据集接口；2：APP） */
    @Excel(name = "数据类型", readConverterExp = "1=：数据集接口；2：APP")
    private String dataType;

    /** 数据名称 */
    @Excel(name = "数据名称")
    private String dataName;

    /** 数据描述 */
    @Excel(name = "数据描述")
    private String dataDesc;

    /** 摘要（短标题） */
    @Excel(name = "摘要", readConverterExp = "短=标题")
    private String summary;

    /** 数据领域 */
    @Excel(name = "数据领域")
    private String dataDomain;

    /** 开放方式 */
    @Excel(name = "开放方式")
    private String openMode;

    /** 更新频率 */
    @Excel(name = "更新频率")
    private String dataCycle;

    /** 上架日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "上架日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date onlinedTime;

    /** 资源格式 */
    @Excel(name = "资源格式")
    private String resourceFormat;

    /** 所属行政区域 */
    @Excel(name = "所属行政区域")
    private String area;

    /** 数据提供方（委办局） */
    @Excel(name = "数据提供方", readConverterExp = "委=办局")
    private String dataProvider;

    /** 提供方地址 */
    @Excel(name = "提供方地址")
    private String providerAddress;

    /** 数据维护方 */
    @Excel(name = "数据维护方")
    private String dataMaintainer;

    /** 来源系统 */
    @Excel(name = "来源系统")
    private String sourceSystem;

    /** 资源链接地址 */
    @Excel(name = "资源链接地址")
    private String resourceLink;

    /** 数据状态 */
    @Excel(name = "数据状态")
    private String dataStatus;

    /** 乐观锁 */
    @Excel(name = "乐观锁")
    private String revision;

    /** 创建人 */
    @Excel(name = "创建人")
    private String createdBy;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdTime;

    /** 更新人 */
    @Excel(name = "更新人")
    private String updatedBy;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedTime;

    public void setDataId(String dataId)
    {
        this.dataId = dataId;
    }

    public String getDataId()
    {
        return dataId;
    }
    public void setDataType(String dataType)
    {
        this.dataType = dataType;
    }

    public String getDataType()
    {
        return dataType;
    }
    public void setDataName(String dataName)
    {
        this.dataName = dataName;
    }

    public String getDataName()
    {
        return dataName;
    }
    public void setDataDesc(String dataDesc)
    {
        this.dataDesc = dataDesc;
    }

    public String getSummary() {
        return summary;
    }

    public void setSummary(String summary) {
        this.summary = summary;
    }

    public String getDataDesc() {
        return dataDesc;
    }

    public void setDataDomain(String dataDomain)
    {
        this.dataDomain = dataDomain;
    }

    public String getDataDomain()
    {
        return dataDomain;
    }
    public void setOpenMode(String openMode)
    {
        this.openMode = openMode;
    }

    public String getOpenMode()
    {
        return openMode;
    }
    public void setDataCycle(String dataCycle)
    {
        this.dataCycle = dataCycle;
    }

    public String getDataCycle()
    {
        return dataCycle;
    }
    public void setOnlinedTime(Date onlinedTime)
    {
        this.onlinedTime = onlinedTime;
    }

    public Date getOnlinedTime()
    {
        return onlinedTime;
    }
    public void setResourceFormat(String resourceFormat)
    {
        this.resourceFormat = resourceFormat;
    }

    public String getResourceFormat()
    {
        return resourceFormat;
    }
    public void setArea(String area)
    {
        this.area = area;
    }

    public String getArea()
    {
        return area;
    }
    public void setDataProvider(String dataProvider)
    {
        this.dataProvider = dataProvider;
    }

    public String getDataProvider()
    {
        return dataProvider;
    }
    public void setProviderAddress(String providerAddress)
    {
        this.providerAddress = providerAddress;
    }

    public String getProviderAddress()
    {
        return providerAddress;
    }
    public void setDataMaintainer(String dataMaintainer)
    {
        this.dataMaintainer = dataMaintainer;
    }

    public String getDataMaintainer()
    {
        return dataMaintainer;
    }
    public void setSourceSystem(String sourceSystem)
    {
        this.sourceSystem = sourceSystem;
    }

    public String getSourceSystem()
    {
        return sourceSystem;
    }
    public void setResourceLink(String resourceLink)
    {
        this.resourceLink = resourceLink;
    }

    public String getResourceLink()
    {
        return resourceLink;
    }
    public void setDataStatus(String dataStatus)
    {
        this.dataStatus = dataStatus;
    }

    public String getDataStatus()
    {
        return dataStatus;
    }
    public void setRevision(String revision)
    {
        this.revision = revision;
    }

    public String getRevision()
    {
        return revision;
    }
    public void setCreatedBy(String createdBy)
    {
        this.createdBy = createdBy;
    }

    public String getCreatedBy()
    {
        return createdBy;
    }
    public void setCreatedTime(Date createdTime)
    {
        this.createdTime = createdTime;
    }

    public Date getCreatedTime()
    {
        return createdTime;
    }
    public void setUpdatedBy(String updatedBy)
    {
        this.updatedBy = updatedBy;
    }

    public String getUpdatedBy()
    {
        return updatedBy;
    }
    public void setUpdatedTime(Date updatedTime)
    {
        this.updatedTime = updatedTime;
    }

    public Date getUpdatedTime()
    {
        return updatedTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("dataId", getDataId())
                .append("dataType", getDataType())
                .append("dataName", getDataName())
                .append("dataDesc", getDataDesc())
                .append("abstract", getSummary())
                .append("dataDomain", getDataDomain())
                .append("openMode", getOpenMode())
                .append("dataCycle", getDataCycle())
                .append("onlinedTime", getOnlinedTime())
                .append("resourceFormat", getResourceFormat())
                .append("area", getArea())
                .append("dataProvider", getDataProvider())
                .append("providerAddress", getProviderAddress())
                .append("dataMaintainer", getDataMaintainer())
                .append("sourceSystem", getSourceSystem())
                .append("resourceLink", getResourceLink())
                .append("dataStatus", getDataStatus())
                .append("revision", getRevision())
                .append("createdBy", getCreatedBy())
                .append("createdTime", getCreatedTime())
                .append("updatedBy", getUpdatedBy())
                .append("updatedTime", getUpdatedTime())
                .toString();
    }
}
